/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yunhoo.deptBudget.model;

import java.util.Date;

/**
 *
 * @author Administrator
 */
public class Budget extends OrgAndYear {

    private int id;
    private String projCode;//财政项目
    private String projName;
    private String deptCode;//部门
    private String deptName;
    private Date addDate = new Date();//预算追加日期
    private Double budget = 0d;//本年预算
    private Double budgetOfLastYear = 0d;//上年预算
    private Double total = 0d;//本年预算 + 上年预算
    private String memo = "";//备注
    private boolean selected = false;

    public Budget() {
    }

    public Budget(boolean initWithLoginInfo) {
        super(initWithLoginInfo);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getProjCode() {
        return projCode;
    }

    public void setProjCode(String projCode) {
        this.projCode = projCode;
    }

    public String getProjName() {
        return projName;
    }

    public void setProjName(String projName) {
        this.projName = projName;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Date getAddDate() {
        return addDate;
    }

    public void setAddDate(Date addDate) {
        this.addDate = addDate;
    }

    public Double getBudget() {
        return budget;
    }

    public void setBudget(Double budget) {
        this.budget = budget;
    }

    public Double getBudgetOfLastYear() {
        return budgetOfLastYear;
    }

    public void setBudgetOfLastYear(Double budgetOfLastYear) {
        this.budgetOfLastYear = budgetOfLastYear;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }
}
